<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>系统菜单管理</title>
    <%@include file="/static/common/common.jsp"%>
    <script src="/static/js/system/layout/menu.js"></script>
</head>
<body>
<table id="menu_datagrid" ></table>
<!--菜单的工具栏-->
<div id="tb">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" data-cmd="add">添加</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" data-cmd="remove">删除</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新</a>

</div>
<div id="menu_dialog">
    <form id="menu_form" method="post">
        <input type="hidden" id="menuId" name="id">
        <table align="center" style="margin-top: 15px">
            <tr>
                <td>父菜单</td>
                <td><input type="text" class="easyui-combobox" name="parent.id" data-options="
                        valueField: 'id',textField: 'text', panelHeight:'auto',
                         url:'/menu/queryRootMenu'">
                </td>
            </tr>
            <tr>
                <td>菜单名称:</td>
                <td><input type="text" class="easyui-textbox" name="text" >
                </td>
            </tr>
            <tr>
                <td>URL:</td>
                <td><input type="text" class="easyui-textbox" name="url" >
                </td>
            </tr>
            <tr>
                <td>根菜单图标:</td>
                <td><input type="text" class="easyui-textbox" name="icon"/>
                </td>
            </tr>
            <tr>
                <td>绑定权限</td>
                <td><input class="easyui-combobox" name="permission.id" data-options="
                    valueField: 'id',textField: 'name',
                    url:'/permission/queryPermissions'">
                </td>
            </tr>
        </table>
    </form>
</div>

<!--菜单底部按钮-->
<div id="bb">
    <a href="#" class="easyui-linkbutton" iconCls="icon-save" data-cmd="save">保存</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-cancel" data-cmd="cancel">关闭</a>
</div>
</body>
</html>
